﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.MexicoSailunMDC.Dao;

partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// Scada可能从线体读取任务和不显示任务的节点
    /// </summary>
    public DbSet<POVEquipBuildingNodeV2> VEquipBuildingNodeV2 { get; set; }
}


/// <summary>
/// Scada成型机(提升)节点
/// </summary>
[Table("v_equip_building_node_v2")]
public class POVEquipBuildingNodeV2
{

    /// <summary>
    /// 主键
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }

    /// <summary>
    /// 控件编码
    /// </summary>
    [Column("box_code")]
    public string BoxCode { get; set; }

    /// <summary>
    /// 控件名 - 在节点内显示
    /// </summary>
    [Column("box_name")]
    public string BoxName { get; set; }

    /// <summary>
    /// scada 库位Id
    /// </summary>
    [Column("loc_id")]
    public long? LocId { get; set; }

    /// <summary>
    /// scada 设备Id
    /// </summary>
    [Column("equip_id")]
    public long? EquipId { get; set; }

    /// <summary>
    /// Y坐标
    /// </summary>
    [Column("y_axis")]
    public int? YAxis { get; set; }

    /// <summary>
    /// X坐标
    /// </summary>
    [Column("x_axis")]
    public int? XAxis { get; set; }

    /// <summary>
    /// 宽
    /// </summary>
    [Column("box_width")]
    public int? BoxWidth { get; set; }

    /// <summary>
    /// 高
    /// </summary>
    [Column("box_height")]
    public int? BoxHeight { get; set; }

    /// <summary>
    /// 控件优先级，用来设备覆盖
    /// </summary>
    [Column("box_index")]
    public int? BoxIndex { get; set; }

    /// <summary>
    /// scada 终极是否可用
    /// </summary>
    [Column("scada_use_flag")]
    public int? ScadaUseFlag { get; set; }

    /// <summary>
    /// 形状
    /// </summary>
    [Column("show_type")]
    public string ShowType { get; set; }

    /// <summary>
    /// 颜色
    /// </summary>
    [Column("show_color")]
    public string ShowColor { get; set; }

    /// <summary>
    /// 节点编码
    /// </summary>
    [Column("show_code")]
    public int? ShowCode { get; set; }

    /// <summary>
    /// 节点名字 ，用来悬浮展示
    /// </summary>
    [Column("show_name")]
    public string ShowName { get; set; }

    /// <summary>
    /// scada 备注
    /// </summary>
    [Column("scada_remark_memo")]
    public string ScadaRemarkMemo { get; set; }

    /// <summary>
    /// scada 警告代码
    /// </summary>
    [Column("warning_code")]
    public string WarningCode { get; set; }

    /// <summary>
    /// scada 警告名
    /// </summary>
    [Column("warning_name")]
    public string WarningName { get; set; }

    /// <summary>
    /// 控件类型：1 - 说明 ，2 - 线体 ， 3 - 扫描 ， 4 - 堆垛机 ， 5 - 硫化机排 ， 6 - 喷涂 ，7 - 堆垛机货叉，8 - EMS小车 9 成型
    /// </summary>
    [Column("box_type")]
    public int? BoxType { get; set; }

    /// <summary>
    /// 设备 终极是否可用
    /// </summary>
    [Column("equip_use_flag")]
    public int? EquipUseFlag { get; set; }

    /// <summary>
    /// 设备 是否可用
    /// </summary>
    [Column("equip_enable")]
    public int? EquipEnable { get; set; }

    /// <summary>
    /// 父节点Id 用来作为scada表中的关联
    /// </summary>
    [Column("parent_id")]
    public long? ParentId { get; set; }

    /// <summary>
    /// 设备开启状态
    /// </summary>
    [Column("equip_status")]
    public int? EquipStatus { get; set; }

    /// <summary>
    /// 提升机开启备注(页面显示这个)
    /// </summary>
    [Column("reamrk_memo")]
    public string ReamrkMemo { get; set; }

    /// <summary>
    /// 提升机编号
    /// </summary>
    [Column("building_code")]
    public string BuildingCode { get; set; }

    /// <summary>
    /// 物料规格
    /// </summary>
    [Column("equip_material")]
    public string EquipMaterial { get; set; }

}
